package com.njupt.yanglonglong.report.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njupt.yanglonglong.report.demo.dto.CourseDto;
import com.njupt.yanglonglong.report.demo.dto.StudentInfo;
import com.njupt.yanglonglong.report.demo.entity.RAppliedStudent;
import com.njupt.yanglonglong.report.demo.mapper.RAppliedStudentMapper;
import com.njupt.yanglonglong.report.demo.service.RAppliedStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class RAppliedStudentServiceImpl extends ServiceImpl<RAppliedStudentMapper, RAppliedStudent>
        implements RAppliedStudentService {

    @Autowired
    RAppliedStudentMapper rAppliedStudentMapper;

    @Override
    public List<StudentInfo> getStudentInfoList(String teacherId, String courseId) {
        return rAppliedStudentMapper.queryAppliedStuList(teacherId, courseId);
    }

    @Override
    public List<CourseDto> getCoursesByStuId(String stuId) {
        return rAppliedStudentMapper.getCoursesByStuId(stuId);
    }
}
